import Vue from 'vue'
import Vuex from 'vuex'

// 导入各自的模块
import mutations from '../mutations'
import actions from '../actions'
import getters from '../getters'

Vue.use(Vuex)

const state = {
  //  管理是否登录标记
  user: null,
  //  是否显示提示框
  isDialog: false
}
const store = new Vuex.Store({
//  state es6字面量增强写法
  state,
  mutations,
  actions,
  getters
})

export default store
